<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form id = 'addProject' class="form-horizontal">
            <div class="form-group">
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">工程名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="project.project" placeholder="工程名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">机型</div>
                <div class="col-sm-10">
                    <select id = "modelId" style="width:200px" v-model="project.modelId" class="form-control">
                        <option v-for="item in modelEntityList" :value="item.id" :key="item.id" name="modelId" :data-modelName="item.model">
                            {{item.model}}
                        </option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">定位模式</div>
                <div class="col-sm-10">
                    <input id = "positionMode" type="text" class="form-control" v-model="project.positionMode" readonly/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">地毯大小：</div>
                <div class="col-sm-10">
                    <select id = "area" style="width:200px" v-model="project.areaL" class="form-control">
                        <option v-for="item in areaEntityList" :value="item.area" :key="item.area" name="areaL">
                            {{item.area}}
                        </option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">调试模式</div>
                <div class="col-sm-10">
                    <input id = "debugMode" type="text" class="form-control" v-model="project.debugMode" readonly/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" class="btn btn-primary" id="save" data-loading-text="保存中..."
                       @click="save" value="确定"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/front/addProject.js?_${.now?long}"></script>
</body>
</html>